package project.messagestack.network;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.SocketException;
import java.net.URI;

public interface Transporter {
  public void setUri(URI uri, int port);
  public void open();
  public String getHost();
  public int getPort();
  public InputStream getInputStream();
  public OutputStream getOutputStream();
  public void close();
  public void setSoTimeout(int miliseconds) throws SocketException;
  public boolean isOpen();
  public void writeLine(String message) throws IOException;
  public String readLine() throws IOException;
  public boolean useSecurity();
  public void setSecurity(boolean useSecurity);
}
